<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class Report extends Model
{
    public $table ='reports';
    public $guarded = [];

    public function getValueAttribute($value)
    {
        return \GuzzleHttp\json_decode($value,true);
    }

    public function setValueAttribute($value)
    {
        $this->attributes['value'] = \GuzzleHttp\json_encode($value);
    }
}
